package com.kinyx.springframework.boot.autoconfigure.orm.jpa;

import java.util.Map;

import org.hibernate.cfg.AvailableSettings;
import org.hibernate.engine.jdbc.dialect.internal.StandardDialectResolverExtend;
import org.springframework.boot.autoconfigure.orm.jpa.HibernatePropertiesCustomizer;
import org.springframework.stereotype.Component;

/**
 * 通过springboot为Hibernate配置自定义实现类
 */
@Component
public class HibernatePropertiesCustomizerImpl4DialectResolvers implements HibernatePropertiesCustomizer {

	@Override
	public void customize(final Map<String, Object> properties) {
		properties.put(AvailableSettings.DIALECT_RESOLVERS, StandardDialectResolverExtend.class.getName());
	}

}
